package com.esm.pdafx.model;

import java.util.ArrayList;
import java.util.List;

import zuo.biao.library.base.BaseModel;

/*

{"code":1,"msg":"ok","time":"1638429427","data":{"lpn":"00037481-93cb-457a-b4f7-81f3bf5081cd_16","kehu_po":"1637649925_7","po":"1637649925_7_1","kwh":"","type":2,"shuangshu":12,"ncodelist":[{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_1","style":null,"size":"7","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb3"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_2","style":null,"size":"7.5","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb4"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_3","style":null,"size":"8","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb5"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_4","style":null,"size":"8.5","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb6"}]}}

 */
//外箱
public class WBox extends BaseModel {

    private static final long serialVersionUID = 1L;

    private String lpn = ""; //外箱条码
    private String kehu_po = ""; //客户订单
    private String po = ""; //制令单
    private String kwh = ""; //库位号
    private int type = 0; //类型:0=未封箱,1=已封箱,2=待入库,3=已入库,4=待出库,5=已出库
    private int shuangshu = 0; //双数

    public ArrayList<SBox> sboxList = new ArrayList<SBox>();//内盒list

    public WBox() {
        //default
    }

    public WBox(long id) {
        this();
        this.id = id;
    }

    public WBox(long id, String kehu_po) {
        this(id);
        this.kehu_po = kehu_po;
    }

    public String getLpn() {
        return lpn;
    }

    public void setLpn(String lpn) {
        this.lpn = lpn;
    }

    public String getKehu_po() {
        return kehu_po;
    }

    public void setKehu_po(String kehu_po) {
        this.kehu_po = kehu_po;
    }

    public String getPo() {
        return po;
    }

    public void setPo(String po) {
        this.po = po;
    }

    public String getKwh() {
        return kwh;
    }

    public void setKwh(String kwh) {
        this.kwh = kwh;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getShuangshu() {
        return shuangshu;
    }

    public void setShuangshu(int shuangshu) {
        this.shuangshu = shuangshu;
    }

    @Override
    protected boolean isCorrect() {//根据自己的需求决定，也可以直接 return true
        return id > 0;// && StringUtil.isNotEmpty(phone, true);
    }

}
